package com.wanmait.demo.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.demo.pojo.RepairOrder;

import java.util.List;

public interface RepairOrderService extends CommonService<RepairOrder> {
    //zjj 查询用户所有维修订单
    List<RepairOrder> findAllById(Integer id);

    //zjj获得某个订单
    RepairOrder findByOrderId(Integer repairOrderId);
    //zjj清空缓存
    void clearCache();


    int findWorker(Integer repairOrderId);


    PageInfo getOrderByUserId (Integer userid);
    List<RepairOrder> findall(Integer workerId);
    PageInfo<RepairOrder> findWorker(Integer workerId,Integer pageNum,Integer pageSize);//闫应鹏 查询已完成订单
    void chargeback(Integer orderId);//闫应鹏 退单
    void insertinfo(int userid,String name,String telnum,String des);//尹山坤
    void insertpic(String num);//尹山坤
    void insertrepairorder(String pic,String username,String phonenum,String describe,Integer address,Integer timetable,Integer userid);//尹山坤  发布订单
    RepairOrder selectorderaddress(Integer repairorderaddressid);//查询订单地址
    List<RepairOrder> selectnotreceivingorders(Integer userid);//查询没有接单的订单  尹山坤
   void updateorderstate(Integer orderid); //修改状态
    List<RepairOrder> selectingorders(Integer userid);//查询接单的订单

}
